import { createRouter, createWebHistory } from 'vue-router'
import login from '../views/login.vue'
import layout from "../views/layout.vue"
import index from "../views/index.vue"
import index1 from "../views/index1.vue"
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: login
    },
    {
        path: '/layout',
        name: 'layout',
        redirect:"/index",
        component: layout,
        children:[
            {
                path: '/index',
                name: 'index',
                component: index
              },    
              {
                path: '/index1',
                name: 'index1',
                component: index1
              },      
              
        ]
      },
   
  ]
})

export default router
